
import request from '@/utils/request'
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'POST',
    data: {
      dictCode
    }
  })
}
export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkRobot/insert',
    method: 'POST',
    data
  })
}
export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkRobot/update',
    method: 'POST',
    data
  })
}
export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkRobot/detail',
    method: 'POST',
    data
  })
}
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkRobot/queryPage',
    method: 'POST',
    data
  })
}
export function deleteById(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkRobot/delete',
    method: 'POST',
    data
  })
}
export function changeStatus(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkRobot/updateStatus',
    method: 'POST',
    data
  })
}
export function downloadTemplate(params) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkRobot/downloadTemplate',
    method: 'get',
    params
  })
}
